package com.spa.infrastructure.enums.dict.base;

import com.spa.infrastructure.annotation.SysDictEnumAnnotation;
import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
@SysDictEnumAnnotation(key = "requestSourceType", desc = "请求来源")
public enum RequestSourceEnum {

    Member("member", "用户端",1,0),
    Shop("shop", "门店端",2,0),
    Massagist("massagist", "技师端",3,0),
    Admin("admin", "平台端",4,0),
    Member_Address("admin_address", "用户端---新增地址校验",5,0),
    ;

    private String code;
    private String desc;
    //排序
    private int sort;
    //状态  0 启用  1 不启用
    private int status;


    public static RequestSourceEnum byCode(String code) {
        for (RequestSourceEnum value : values()) {
            if (value.code.equals(code)) return value;
        }
        return null;
    }







}
